<!--
 * @Author: feng.gan 675198494@qq.com
 * @Date: 2024-07-17 14:47:34
 * @LastEditors: feng.gan 675198494@qq.com
 * @LastEditTime: 2025-06-03 10:03:18
 * @FilePath: \vue3-demo\src\views\TableView.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="table-view">
    <field-mapping />
    <el-scrollbar>
      <el-table :data="tableData">
        <el-table-column prop="date" label="Date" width="140" />
        <el-table-column prop="name" label="Name" width="120" />
        <el-table-column prop="address" label="Address" />
      </el-table>
    </el-scrollbar>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import FieldMapping from '../components/FieldMapping.vue';

const item = {
	'date': '2016-05-02',
	'name': 'Tom',
	'address': 'No. 189, Grove St, Los Angeles'
};
const tableData = ref(Array.from({ 'length': 20 }).fill(item));
</script>

<style scoped>
.table-view {
  padding: 20px;
}
</style>